package com.cvs.contorller;

import com.cvs.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
public class HelloWorldController {
    @Autowired
    private UserService userService;
    @RequestMapping("/hello")
    public @ResponseBody String hello(){
        System.out.println(userService.findAll());
        return "xxxhello";
    }

@RequestMapping("/hello2")
    public @ResponseBody String hello2(){
        System.out.println(userService.findAll());
        return "xxxhello";
    }

 @RequestMapping("/hello3")
    public @ResponseBody String hello3(){
        System.out.println(userService.findAll());
        return "xxxhello";
@RequestMapping("/hello4")
    public @ResponseBody String hello4(){
        System.out.println(userService.findAll());
        return "xxxhello";
}
